package net.xiaosaguo.mymall.search.vo;

import lombok.Data;
import net.xiaosaguo.common.pojo.dto.es.SkuEsModel;

import java.util.List;

/**
 * description: 搜索结果
 *
 * @author xiaosaguo
 * @date 2020/06/30
 */
@Data
public class SearchResult {

    private List<SkuEsModel> products;

    private Integer pageNum;
    private Integer total;
    private Integer totalPages;

    /**
     * 固定返回属性：品牌、分类
     */
    private List<BrandVO> brands;
    private List<CatalogVO> catalogs;

    private List<AttrVO> attrs;

    @Data
    public static class BrandVO {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVO {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVO {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
